﻿@{
    Layout = "_WindowLayout";
    var messages = ((string)ViewData["Message"]!).Split('\n');
}

<p>
@for (int i = 0; i < messages.Length; i++)
{
    if (i > 0) {<br />}
    @messages[i]
}
</p>

@section Footer {
    <button asp-area="@ViewData["AreaName"]"
            asp-controller="@ViewData["ControllerName"]"
            asp-action="@ViewData["ActionName"]"
            asp-all-route-data="@((Dictionary<string,string>)ViewData["RouteValues"]!)"
            type="submit" class="btn btn-@ViewData["MsgType"]">Ok</button>
}
